#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int max = 0;
	int arr[10] = { 0 };
	int i = 0;
	for (i = 0; i < 9; i++)
		scanf("%d", &arr[i]);
	for (i = 0; i < 9; i++)
		if (max < arr[i])
			max = arr[i];
	printf("%d", max);
	return 0;
}